package hy;

import bean.UserAddress;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.OrderService;

public class ConsumerTest {
    public static void main(String[] args)throws Exception {
        ApplicationContext ioc=new ClassPathXmlApplicationContext("classpath:consumer.xml");
        OrderService os=ioc.getBean(OrderService.class);
        UserAddress addr=os.initOrder("002");
        System.out.println("消费者调用完成:"+addr);
        System.in.read();
    }
}
